﻿<%@ page contentType="text/html;charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<html>
<head>
<script type="text/javascript"> 
   function openAccount(){
		if(document.getElementById("name").value=="")
			{
				alert("请输入用户名!");
				document.getElementById("name").focus();
				document.getElementById("name").select();
				return false;
			}
		if(document.getElementById("year").value=="")
			{
				alert("请输入出生年份!");	
				document.getElementById("year").focus();
				document.getElementById("year").select();
				return false;
			}
		if(document.getElementById("month").value=="")
			{
				alert("请输入出生月份!");	
				document.getElementById("month").focus();
				document.getElementById("month").select();
				return false;
			}
		if(document.getElementById("day").value=="")
			{
				alert("请输入出生日期!");	
				document.getElementById("day").focus();
				document.getElementById("day").select();
				return false;
			}
		if(document.getElementById("identityId").value=="")
			{
				alert("请输入身份证号!");	
				document.getElementById("identityId").focus();
				document.getElementById("identityId").select();
				return false;
			}
		if(document.getElementById("nativeplace").value=="")
			{
				alert("请输入籍贯!");	
				document.getElementById("nativeplace").focus();
				document.getElementById("nativeplace").select();
				return false;
			}	
		if(document.getElementById("address").value=="")
			{
				alert("请输入地址!");	
				document.getElementById("address").focus();
				document.getElementById("address").select();
				return false;
			}
		
		if(document.getElementById("email").value=="")
			{
				alert("请输入电子邮箱!");	
				document.getElementById("email").focus();
				document.getElementById("email").select();
				return false;
			}
		if(document.getElementById("phone").value=="")
			{
				alert("请输入电话!");	
				document.getElementById("phone").focus();
				document.getElementById("phone").select();
				return false;
			}	
		if(document.getElementById("mobile").value=="")
			{
				alert("请输入移动电话!");	
				document.getElementById("mobile").focus();
				document.getElementById("mobile").select();
				return false;
			}
		if(document.getElementById("cardno").value=="")
			{
				alert("请输入卡号!");	
				document.getElementById("cardno").focus();
				document.getElementById("cardno").select();
				return false;
			}
		if(document.getElementById("password").value=="")
			{
				alert("请输入密码!");	
				document.getElementById("password").focus();
				document.getElementById("password").select();
				return false;
			}
		document.openAccountForm.action="openAccountAction.do?method=openAccount";
		//alert(document.passwordChangeForm.action);
		//document.transferForm.submit();
		//alert(1);
	}
</script>
<title>ATM-开户</title>
</head>
<link href="../css/css.css" type="text/css" rel="stylesheet">
<body>
<script type="text/javascript"> 
   var adminName = <%=session.getAttribute("adminName")%>;
   		  	if(adminName==null) {
   		  	   alert("请先登录！");
   		  	   document.location.href="./admin.jsp";
   		  	   
   		  	}
 </script>
<div id="container">
	<div id="banner">
		<img src="../images/banner.jpg" border="0">
	</div>
	<div id="leftbar">
		<div id="left1">
  			<div class="tab">
				<img style="margin-right:10px;" src="../images/dot.gif" border=0/>选择操作
			</div>
			<p class="choosed"><a href="admin_customer.jsp" style="color:black;"><img src="../images/angle.gif" border=0 />&nbsp;<font size=3>开户</font></a></p>
			<p class="choose"><a href="admin_cancel.jsp" style="color:black;"><img src="../images/angle.gif" border=0 />&nbsp;<font size=3>销户</font></a></p>
			<p class="choose"><a href="poundageAction.do?method=poundage" style="color:black;"><img src="../images/angle.gif" border=0 />&nbsp;<font size=3>手续费设置</font></a></p>
			<p class="choose"><a href="showBalance.do?method=showBalance" style="color:black;"><img src="../images/angle.gif" border=0 />&nbsp;<font size=3>本机余额</font></a></p>
			<p class="choose"><a href="adminHistoryAction.do?method=getHistory&type=1" style="color:black;"><img src="../images/angle.gif" border=0 />&nbsp;<font size=3>操作记录</font></a></p>
		</div>
		<div id="left2">
			<div class="tab">
				<img style="margin-right:10px;" src="../images/dot.gif" border=0/>联系我们
			</div>
			<div>
				<p class="p2">客服24小时热线：<font color="red">95588</font></p>
				<p class="p2">信用卡24小时专线：<font color="red">40088</font></p>
			</div>
		</div>
	</div>
	<div id="content">
		<div id="center">
			<p class="label1"><img src="../images/tip.gif">&nbsp;开户</p>
			<form name="openAccountForm" class="form3" method="post" action="">
				<font color="red">*</font>&nbsp;姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名：&nbsp;<input type="text" id="name" name="name"/>
				<br>
				<font color="red">*</font>&nbsp;性&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;别：&nbsp;
					<input type="radio" name="gender" value="M" checked="checked"/>男
	         		<input type="radio" name="gender" value="F"/>女
	         	<br>
	    		<font color="red">*</font>&nbsp;出生年月：&nbsp;<input type="text" id="year" name="year" size="4"/> 年
 				<input type="text" id="month" name="month" size="4"/> 月
 				<input type="text" id="day" name="day" size="4"/> 日
 				<br>
 				<font color="red">*</font>&nbsp;身份证号：&nbsp;<input type="text" id="identityId" name="identityId"/>
 				<br>
	    		<font color="red">&nbsp;&nbsp;</font>&nbsp;籍&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;贯：&nbsp;<input type="text" id="nativeplace" name="nativeplace"/>
	    		<br>
	    		<font color="red">*</font>&nbsp;地&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;址：&nbsp;<input type="text" id="address" name="address"/>
	    		<br>
	    		<font color="red">*</font>&nbsp;电子邮箱：&nbsp;<input type="text" id="email" name="email"/>
	    		<br>
	    		<font color="red">*</font>&nbsp;电&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;话：&nbsp;<input type="text" id="phone" name="phone"/>
	    		<br>
	    		<font color="red">&nbsp;&nbsp;</font>&nbsp;移动电话：&nbsp;<input type="text" id="mobile" name="mobile"/>
	    		<br>
	    		<font color="red">*</font>&nbsp;卡&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号：&nbsp;<input type="text" id="cardno" name="cardno"/>
	    		<br>
	    		<font color="red">*</font>&nbsp;密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码：&nbsp;<input type="password" id="password" name="password" size="21"/>
	    		<br>
	    		<input type="submit" value="确 认" class="input2" onclick="openAccount();">
	    	</form>
	    </div>
	    <div id="rightbar">
			<div id="right1">
				<div class="tab">
					<img style="margin-right:10px;" src="../images/dot.gif" border=0/>欢迎光临
				</div>
				<div>
					<p style="font-family:幼圆;">您好，${adminName}
						<a href="adminExitAction.do?method=exit" style="color:blue;">[退出]</a>
					</p>
				</div>
			</div>
			<div>
				<img src="../images/logo.gif" border=0 />
			</div>
			<div>
				<img src="../images/ad4.gif" border=0 />
			</div>
			<div id="right2">
				<div class="tab">
					<img style="margin-right:10px;" src="../images/dot.gif" border=0/>友情链接
				</div>
				<div>
					<p><a href="http://www.icbc.com.cn/icbc/"  class="p3">中国工商银行</a></p>
					<p><a href="http://www.boc.cn/"  class="p3">中国银行</a></p>
					<p><a href="http://www.95599.cn/cn/"  class="p3">中国农业银行</a></p>
					<p><a href="http://www.ccb.com/cn/home/index.html"  class="p3">中国建设银行</a></p>
				</div>
			</div>
		</div>
	</div>
	<div id="footer">
		<p style="margin-top:5px; margin-bottom:5px;">© 版权所有 中国工商银行版权所有</p>
		<p style="margin-top:0 px; padding-top:0px;">网站声明&nbsp;&nbsp;|&nbsp;&nbsp;
			服务网点&nbsp;&nbsp;|&nbsp;&nbsp;
			网站地图&nbsp;&nbsp;|&nbsp;&nbsp;
			联系我们</p>
	</div>
</div>
</body>
</html>